package com.tristen.gulimall.product.fallback;

import com.tristen.common.exception.BizCodeEnum;
import com.tristen.common.utils.R;
import com.tristen.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName SeckillFeignServiceFallBack.java
 * @Description TODO
 * @createTime 2022年01月24日 21:18:00
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        return R.error(BizCodeEnum.TO_MANY_REQUEST.getCode(), BizCodeEnum.TO_MANY_REQUEST.getMsg());
    }
}
